-- GENERATED SPELL FOR [Bloodthirsty Marshfang] --


function spell0_20196(pUnit, Event) --@Drain Mana,Drain--
pUnit:FullCastSpellOnTarget(17008,pUnit:GetRandomPlayer(4))
pUnit:RegisterEvent('Sorts_20196', 5000, 1)
end

function spell1_20196(pUnit, Event) --@Nether Leech,Heal--
pUnit:FullCastSpellOnTarget(35335,pUnit)
pUnit:RegisterEvent('Sorts_20196', 618, 1)
end

function Sorts_20196(pUnit, Event)
local choix_sorts_20196 = math.random(0, 1)
if choix_sorts_20196 == 0 then
pUnit:RegisterEvent('spell0_20196', 1, 1)
end
if choix_sorts_20196 == 1 then
pUnit:RegisterEvent('spell1_20196', 1, 1)
end
end

function mob20196_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20196', math.random(1500, 3000), 1)
end

function mob20196_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20196_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20196_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20196, 1, 'mob20196_Action')
RegisterUnitEvent(20196, 2, 'mob20196_Leave')
RegisterUnitEvent(20196, 3, 'mob20196_Kill')
RegisterUnitEvent(20196, 4, 'mob20196_Die')
